package com.huawang.mdesign.model.service.util;

public class TableCopyInfoUtils {

    private TableCopyInfoUtils() {
    }

    //已完成创建模型个数
    private static int finishSize = 0;

    //需要创建的模型总数
    private static int allSize = 0;

    public static final String UPDATE_PREFIX = "update";


    //提供get set方法
    public static int getAllSize() {
        return TableCopyInfoUtils.allSize;
    }

    public static void setAllSize(int allSize) {
        TableCopyInfoUtils.allSize = allSize;
    }
    //提供get set方法
    public static int getFinishSize() {
        return TableCopyInfoUtils.finishSize;
    }
    public static void setFinishSize(int finishSize) {
        TableCopyInfoUtils.finishSize = finishSize;
    }

    public static void setBarInfo(int nowNum, int allNum) {
        finishSize = nowNum;
        allSize = allNum;
    }

    public static void clearInfo() {
        finishSize = 0;
        allSize = 0;
    }

    public static void initInfo(int size) {
        finishSize = 0;
        allSize = size;
    }
}
